/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: #fff;
  color: #333;
  line-height: 1.6;
}

/* 导航栏样式 */
.navbar {
	transition: all 0.3s ease;
	padding-top: 15px;
	padding-bottom: 15px;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	z-index: 1000;
	background-color: white;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Logo大小设置 */
.navbar-brand img {
	height: 56px;
	width: auto;
	object-fit: contain;
}

/* 导航栏菜单项大幅右移 */
#navbarNav {
	margin-left: 280px;
}

/* 增加导航项间距 */
.nav-item {
	margin-left: 30px !important;
	margin-right: 30px !important;
}

/* 确保覆盖Bootstrap的mx-3类 */
.nav-item.mx-3 {
	margin-left: 30px !important;
	margin-right: 30px !important;
}

/* 导航栏链接样式 */
.navbar-nav .nav-link {
	color: #151619;
	font-size: 16px;
	font-weight: 500;
	position: relative;
	padding: 20px 0;
	transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
	color: #DB0018;
}

.navbar-nav .nav-link::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background-color: #DB0018;
	transition: all 0.3s ease;
	transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after {
	width: 100%;
}

/* 导航栏当前页面活跃状态样式 */
.navbar-nav .nav-link.active {
	color: #DB0018;
}

.navbar-nav .nav-link.active::after {
	width: 100%;
}

/* 关于我们冒泡弹窗样式 */
#aboutUsContainer {
	position: relative;
}

/* 为关于我们按钮添加微妙的悬停效果，与弹窗动画协调 */
#aboutUsBtn {
	transition: all 0.3s ease;
}

#aboutUsContainer:hover #aboutUsBtn {
	transform: translateY(-2px); /* 轻微上移，提示交互 */
}

/* 为了确保鼠标移入弹窗区域时弹窗不消失，我们需要在弹窗显示时也保持父元素的hover状态 */
#aboutUsContainer:hover .about-us-dropdown,
.about-us-dropdown:hover {
	visibility: visible;
	transform: translateY(0);
	opacity: 1;
	max-height: 500px;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
}

.about-us-dropdown {
	position: absolute;
	top: 100%;
	left: 0;
	margin-top: 5px;
	background-color: white;
	border: 1px solid #e0e0e0;
	border-radius: 10px;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05); /* 初始更淡的阴影 */
	padding: 20px 10px;
	width: 112px;
	font-size: 14px;
	visibility: hidden;
	z-index: 1000;
	/* 从上到下拉出的动画效果 */
	transform: translateY(-8px); /* 减小初始位移，让动画更自然 */
	opacity: 0;
	/* 统一使用更自然的缓动函数，确保所有属性同步变化 */
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			visibility 0s ease 0.4s, 
			box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
	max-height: 0;
	overflow: hidden;
}

/* 修复hover时的可见性和过渡效果 */
#aboutUsContainer:hover .about-us-dropdown {
	visibility: visible;
	transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			opacity 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			max-height 0.4s cubic-bezier(0.22, 1, 0.36, 1), 
			visibility 0s ease 0s, 
			box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

/* 弹窗内容样式 */
.dropdown-content {
	display: flex;
	flex-direction: column;
}

/* 弹窗按钮样式 - 确保没有点击效果 */
.dropdown-item {
	background: none;
	border: none;
	text-align: center;
	padding: 12px 20px;
	cursor: pointer;
	color: #151619;
	font-size: 14px;
	/* 移除hover效果 */
	transition: none;
}

/* 覆盖任何可能的hover效果 */
.dropdown-item:hover {
	background-color: transparent;
	color: #151619;
	font-size: 14px;
}

/* 移动端手拉琴效果 */
@media (max-width: 768px) {
	.about-us-dropdown {
		/* 重置桌面端动画 */
		transform: translateY(0);
		opacity: 1;
		transition: max-height 0.5s ease;
	}
	
	.about-us-dropdown.show {
		/* 保持手拉琴效果 */
		transform: translateY(0);
		opacity: 1;
	}
}

/* Banner大图样式 */
.news-banner {
	width: 100%;
	height: 470px;
	display: flex;
	align-items: center;
	justify-content: flex-start;
	position: relative;
	overflow: hidden;
}

/* Banner图片样式 */
.banner-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	z-index: 1;
}

/* Banner内容容器 */
.banner-content {
	padding-left: 150px;
	max-width: 100%;
	position: relative;
	z-index: 2;
}

/* Banner标题样式 */
.banner-title {
	color: white;
	font-size: 48px;
	font-weight: 700;
	margin: 0;
	line-height: 1.2;
	text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* 响应式适配 */
@media (max-width: 768px) {
	.news-banner {
		height: 300px;
	}
	
	.banner-content {
		padding-left: 30px;
	}
	
	.banner-title {
		font-size: 36px;
	}
}

@media (max-width: 480px) {
	.news-banner {
		height: 250px;
	}
	
	.banner-title {
		font-size: 28px;
	}
}

/* 新闻分类筛选 */
.category-section {
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.category-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

.category-btn {
  padding: 8px 20px;
  background-color: transparent;
  border: 1px solid transparent;
  color: #666;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  position: relative;
}

.category-btn:hover {
  color: #007ac9;
}

.category-btn.active {
  color: #007ac9;
}

.category-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background-color: #007ac9;
}

/* 新闻内容部分 */
.news-content {
  background-color: #fff;
}

/* 新闻列表 */
.news-list {
  position: relative;
}

/* 置顶新闻 */
.news-item.featured {
  margin-bottom: 40px;
  position: relative;
}

.news-featured-container {
  position: relative;
  width: 100%;
  height: 400px;
  overflow: hidden;
  border-radius: 12px;
  margin-bottom: 20px;
}

.featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-featured-container:hover .featured-image {
  transform: scale(1.03);
}

.featured-badge {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: #e74c3c;
  color: #fff;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 12px;
  font-weight: 600;
  z-index: 10;
}

/* 普通新闻项 */
.news-item {
  display: flex;
  margin-bottom: 30px;
  padding-bottom: 30px;
  border-bottom: 1px solid #eee;
  transition: all 0.3s ease;
}

.news-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  border-radius: 8px;
}

.news-image-container {
  width: 200px;
  height: 140px;
  overflow: hidden;
  flex-shrink: 0;
  border-radius: 8px;
  margin-right: 20px;
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-item:hover .news-image {
  transform: scale(1.1);
}

/* 新闻信息 */
.news-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.3s ease;
}

.news-item.featured .news-title {
  font-size: 24px;
  margin-bottom: 15px;
}

.news-title a {
  color: #333;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-title a:hover {
  color: #007ac9;
  text-decoration: none;
}

.news-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.8;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-item.featured .news-excerpt {
  font-size: 16px;
  -webkit-line-clamp: 3;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 13px;
  color: #999;
}

.news-date,
.news-category,
.news-views {
  display: flex;
  align-items: center;
}

.news-views i {
  margin-right: 5px;
}

.news-category {
  background-color: #f0f8ff;
  color: #007ac9;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

/* 分页控制 */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 40px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #ddd;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.3s ease;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #007ac9;
  color: #007ac9;
}

.pagination-btn.active {
  background-color: #007ac9;
  border-color: #007ac9;
  color: #fff;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.prev-btn,
.pagination-btn.next-btn {
  width: 40px;
  height: 40px;
}

.pagination-btn i {
  font-size: 20px;
}

/* 右侧边栏 */
.sidebar {
  position: sticky;
  top: 100px;
}

.sidebar-section {
  background-color: #f9f9f9;
  border-radius: 12px;
  padding: 25px;
  margin-bottom: 30px;
}

.sidebar-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.sidebar-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #007ac9;
}

/* 搜索框 */
.search-box {
  position: relative;
}

.search-input {
  width: 100%;
  height: 45px;
  padding: 0 50px 0 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  transition: all 0.3s ease;
}

.search-input:focus {
  outline: none;
  border-color: #007ac9;
  box-shadow: 0 0 0 3px rgba(0, 122, 201, 0.1);
}

.search-btn {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  background-color: transparent;
  border: none;
  color: #999;
  cursor: pointer;
  padding: 8px;
  transition: color 0.3s ease;
}

.search-btn:hover {
  color: #007ac9;
}

/* 热门新闻列表 */
.hot-news-list {
  list-style: none;
  padding: 0;
}

.hot-news-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 15px;
  transition: all 0.3s ease;
}

.hot-news-item:last-child {
  margin-bottom: 0;
}

.hot-news-rank {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  background-color: #007ac9;
  color: #fff;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  margin-right: 12px;
  flex-shrink: 0;
}

.hot-news-item:nth-child(2) .hot-news-rank {
  background-color: #2ecc71;
}

.hot-news-item:nth-child(3) .hot-news-rank {
  background-color: #f39c12;
}

.hot-news-title {
  flex: 1;
  color: #333;
  font-size: 14px;
  line-height: 1.5;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.hot-news-title:hover {
  color: #007ac9;
  text-decoration: none;
}

/* 最新资讯列表 */
.latest-news-list {
  list-style: none;
  padding: 0;
}

.latest-news-item {
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.latest-news-item:last-child {
  margin-bottom: 0;
}

.latest-news-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
  margin-right: 15px;
  flex-shrink: 0;
}

.latest-news-title {
  flex: 1;
  color: #333;
  font-size: 13px;
  line-height: 1.5;
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.3s ease;
}

.latest-news-title:hover {
  color: #007ac9;
  text-decoration: none;
}

.latest-news-date {
  display: block;
  font-size: 12px;
  color: #999;
  margin-top: 5px;
}

/* 订阅通讯 */
.subscribe-description {
  color: #666;
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 20px;
}

.subscribe-form {
  position: relative;
}

.subscribe-input {
  width: 100%;
  height: 45px;
  padding: 0 120px 0 20px;
  border: 1px solid #ddd;
  border-radius: 25px;
  font-size: 14px;
  margin-bottom: 10px;
  transition: all 0.3s ease;
}

.subscribe-input:focus {
  outline: none;
  border-color: #007ac9;
  box-shadow: 0 0 0 3px rgba(0, 122, 201, 0.1);
}

.subscribe-btn {
  position: absolute;
  top: 0;
  right: 0;
  height: 45px;
  padding: 0 20px;
  background-color: #007ac9;
  color: #fff;
  border: none;
  border-radius: 25px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.subscribe-btn:hover {
  background-color: #005a9e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 122, 201, 0.3);
}

/* 页脚样式 */
footer {
  background-color: #333;
  color: #fff;
}

.footer-column-content {
  padding: 20px 0;
}

.footer-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background-color: #007ac9;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-link-item {
  color: #ddd;
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
}

.footer-link-item:hover {
  color: #007ac9;
  text-decoration: none;
}

.contact-info {
  margin-top: 20px;
}

.contact-phone,
.contact-address {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
}

.contact-phone img,
.contact-address img {
  width: 20px;
  margin-right: 15px;
  margin-top: 5px;
}

.contact-phone p,
.contact-address p {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  color: #ddd;
}

.qrcode-container {
  display: flex;
  gap: 30px;
  margin-top: 20px;
}

.qrcode-item {
  text-align: center;
}

.qrcode-image {
  width: 80px;
  height: 80px;
  margin-bottom: 10px;
}

.qrcode-text {
  font-size: 14px;
  color: #ddd;
  margin: 0;
}

.footer_bottom {
  background-color: #222;
  padding: 15px 0;
  text-align: center;
  font-size: 12px;
  color: #999;
}

/* 响应式设计 */
@media (max-width: 1200px) {
  .navbar-nav .nav-item {
    margin: 0 10px;
  }

  .news-image-container {
    width: 180px;
    height: 120px;
  }
}

@media (max-width: 992px) {
  .navbar-nav {
    background-color: #fff;
    padding: 20px 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    margin-top: 10px;
  }

  .navbar-nav .nav-item {
    margin: 5px 0;
    text-align: center;
  }

  .about-us-dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    margin-top: 0;
    width: 100%;
  }

  .about-us-dropdown::before {
    display: none;
  }

  .banner-title {
    font-size: 36px;
  }

  .news-featured-container {
    height: 300px;
  }

  .sidebar {
    position: static;
    margin-top: 40px;
  }
}

@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }

  .news-image-container {
    width: 100%;
    height: 200px;
    margin-right: 0;
    margin-bottom: 15px;
  }

  .banner-title {
    font-size: 28px;
  }

  .news-banner {
    height: 300px;
  }

  .news-featured-container {
    height: 250px;
  }

  .category-container {
    flex-wrap: wrap;
    gap: 10px;
  }

  .category-btn {
    padding: 6px 16px;
    font-size: 13px;
  }

  .news-title {
    font-size: 18px;
  }

  .news-item.featured .news-title {
    font-size: 20px;
  }

  .pagination-btn {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .banner-title {
    font-size: 24px;
  }

  .news-banner {
    height: 250px;
  }

  .news-featured-container {
    height: 200px;
  }

  .sidebar-section {
    padding: 20px;
  }

  .subscribe-btn {
    position: static;
    width: 100%;
    margin-top: 10px;
  }

  .subscribe-input {
    padding: 0 20px;
  }

  .news-meta {
    gap: 10px;
    font-size: 12px;
  }

  .news-title {
    font-size: 16px;
  }

  .news-item.featured .news-title {
    font-size: 18px;
  }
}

/* 加载动画 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.news-item {
  animation: fadeIn 0.5s ease forwards;
}

.news-item:nth-child(1) { animation-delay: 0.1s; }
.news-item:nth-child(2) { animation-delay: 0.2s; }
.news-item:nth-child(3) { animation-delay: 0.3s; }
.news-item:nth-child(4) { animation-delay: 0.4s; }
.news-item:nth-child(5) { animation-delay: 0.5s; }